package com.love.marriage.userBalanceInfo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.love.marriage.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * description:  用户余额表类
 * author:       mybatisPlus
 * createDate: 2024-10-17 21:19:44
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_balance_info_t")
@Schema(description = "用户余额表")
public class UserBalanceInfo extends BaseEntity<UserBalanceInfo>{

    @Schema(description = "用户ID，关联用户表", type = "Long", implementation = Long.class)
    @TableField("user_id")
    private Long userId;

    @Schema(description = "用户当前余额", type = "BigDecimal", implementation = BigDecimal.class)
    @TableField("balance")
    private BigDecimal balance;

    @Schema(description = "版本", type = "Integer", implementation = Integer.class)
    @Version
    private Integer version;

}
